import com.alibaba.fastjson.JSON;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import xyz.chaobei.common.Student;

/**
 * @author <a href='mailto:maruichao52@gmail.com'>MRC</a>
 * @since 2021/1/11
 */
public class Slf4jTest {

    public static void main(String[] args) {

        Logger logger = LoggerFactory.getLogger(Slf4jTest.class);

        Student student = new Student(1, "desc", 2);
        logger.debug("print debug info {}", JSON.toJSONString(student));

        logger.info("print info info {}", JSON.toJSONString(student));
        logger.warn("print the warn info");
        logger.error("print some error info");
    }

}
